package news.yp.newsproject.presenter.model;

import io.reactivex.Flowable;
import news.yp.newsproject.bean.BookRequest;
import news.yp.newsproject.bean.BookResponse;
import news.yp.newsproject.network.ApiServiceFactor;
import news.yp.newsproject.network.NetWorkrequest;

public class DiscoverModel {
    public Flowable<BookResponse> getData(BookRequest bookRequest) {

        return NetWorkrequest.CreateApiService(ApiServiceFactor.class, ApiServiceFactor.bookurl)
                .requestBookPageData(bookRequest);

    }
}
